These scripts all deal with Javascript forms. I'll show you some really neat forms that keep you from receiving bogus information as well as others that are just fun to play with (test personal info). As always, we're here if you have any questions or comments.
Title: Agree Before Entry
Details: 1.12 KB * Uploaded October 28 1999
Description: JavaScript will only let you enter your name in this form if you indicate you agree to the terms by first clicking the I Agree radio button. If you agree, you can enter your name. But, if you disagree, you will not be able to enter or edit your name. When you disagree, the box is 'locked.' Useful if you require your visitors to accept a disclaimer before downloading software or visiting a section of your members-only site.
[ Get Source Code ]
Title: All Lower Case
Details: 0.55 KB * Uploaded August 10 1999
Description: Converts a textbox entry to all lowercase letters as soon as they move to the next item in the form (or click the submit button).
[ Get Source Code ]
Title: All Upper Case
Details: 0.55 KB * Uploaded August 9 1999
Description: Converts a textbox entry to all capital letters as soon as they move to the next item in the form (or click the submit button).
[ Get Source Code ]
Title: Auto Month
Contributor: Don Demrow (d1102@home.com)
Contributor URL: http://resume.w3site.com
Details: 1.74 KB * Uploaded February 5 2001
Description: This pulldown menu will automatically adjust the range of months so that the current month is at the top. The remaining months are placed in order after the current month.
[ Get Source Code ]
Title: Anywhere Mail
Details: 1.02 KB * Uploaded August 4 1997
Description: Use this script to allow visitors to mail anyone, at any time.
[ Get Source Code ]
Title: Auto Email Link
Contributor: CodeLifter.com (support@codelifter.com)
Contributor URL: http://www.codelifter.com
Details: 1.69 KB * Uploaded February 21 2001
Description: Automatically opens a new e-mail using your default e-mail client and fills in the subject line and body with the address of the current web page. Neat!
[ Get Source Code ]
Title: Auto Tab
Contributor: Cyanide_7 (leo7278@hotmail.com)
Contributor URL: http://www7.ewebcity.com/cyanide7
Details: 1.68 KB * Uploaded April 21 2000
Description: Automatically sets focus to the next form element when the current form element's maxlength has been reached. This way, the user does not have to manually click in or tab to the next field. This script is perfectly suited for constant-length strings such as a phone number or social security numbers. Nice!
[ Get Source Code ]
Title: Auto Year
Contributor: Don Demrow (d1102@home.com)
Contributor URL: http://resume.w3site.com
Details: 1.09 KB * Uploaded January 25 2001
Description: This pulldown menu will automatically adjust the range of years depending on the current year. As an added bonus, the range is easily modified. Awesome!
[ Get Source Code ]
Title: Basic Validation
Contributor: wsabstract.com
Details: 1.41 KB * Uploaded April 14 1999
Description: The simplest way to require visitors to fill out certain fields is to us this script - just add the word "required" to each required field's name and your visitor must fill it out to submit the form! Neat!
[ Get Source Code ]
Title: Block Key Press
Contributor: Jeremy Wollard (wollard@flash.net)
Details: 0.99 KB * Uploaded July 13 2000
Description: (Internet Explorer Only) Using the OnKeypress event, you can trap and prevent certain characters (repesented by ASCII decimal codes) from being entered in a form field. Just look up the ASCII code for any other characters you wish to block and add it to the script. Unfortunately, Netscape does not support this same functionality.
[ Get Source Code ]
Title: Check All
Contributor: Nannette Thacker
Contributor URL: http://www.shiningstar.net
Details: 1.39 KB * Uploaded April 28 2000
Description: Dynamically checks and unchecks all the checkboxes in a form when a button is clicked. Much easier than manually hard-coding the checkbox names, for sure.
[ Get Source Code ]
Title: Check Entry
Details: 0.95 KB * Uploaded September 8 1999
Description: Prevents the user from selecting a filename with a space (known to cause problems with some CGI-scripts). The visitor are informed that the field can not have spaces. Of course, you could change the character it checks for as well as the invalid alert message to something else to suit your needs. Nice!
[ Get Source Code ]
Title: Checkbox Changer
Details: 1.94 KB * Uploaded July 27 1999
Description: Takes a series of known named checkboxes and checks or uncheck them all at once. It can even change each checkbox to the opposite checked or not checked value. Clever for loops!
[ Get Source Code ]
Title: Checkbox Counter
Contributor: Alan Gruskoff (alan@performantsystems.com)
Contributor URL: http://www.performantsystems.com/
Details: 1.60 KB * Uploaded November 28 2000
Description: Easily count the number of checkboxes that have been selected. Easy!
[ Get Source Code ]
Title: Checkbox Text
Contributor: trs2005@yahoo.com (trs2005@yahoo.com)
Details: 0.97 KB * Uploaded July 20 2000
Description: (Internet Explorer Only) The user no longer needs to click precisely on the checkbox to check and uncheck it. Clicking the text after a checkbox can do this just like windows programs.
[ Get Source Code ]
Title: Clean CAPS
Contributor: Ronnie T. Moore, Editor
Details: 1.24 KB * Uploaded August 24 2000
Description: Keep users from typing in all caps, but still allow for capital letter strings for things like initials (JPC) or uppercase abbreviations (NASA or WWII). You can easily change the number of capital letters allowed in a row after which the capital letterstring is converted to lowercase.
[ Get Source Code ]
Title: Commas
Contributor: Mark Henwood (mark_henwood@hotmail.com)
Details: 1.51 KB * Uploaded January 2 2001
Description: Quickly add commas to any numerical form input. Great for displaying large numbers!
[ Get Source Code ]
Title: Confirmable Order Form
Details: 4.79 KB * Uploaded July 15 1999
Description: JavaScript can take the contents of an HTML order form, process them, and display the order for verification even including the grand total! When the user confirms the order by clicking the button, the order is emailed to you by using freedback.com's free form processor cgi script. This script does take a bit of modification, but surely is worth it if you sell anything online.
[ Get Source Code ]
Title: Controlled Boxes
Contributor: Scott Waichler
Details: 1.78 KB * Uploaded June 25 1999
Description: This script allows checkboxes to check and uncheck based on the selection in another checkbox. If the ALL box is checked, all the other choices go unchecked. If another choice is checked, then the ALL box goes unchecked. Useful when constructing search forms, surveys, and more!
[ Get Source Code ]
Title: Copy Fields
Details: 8.75 KB * Uploaded November 10 1999
Description: Allows the user to click a checkbox on a form to duplicate information. For example, they can copy their billing information into the shipping information fields (assuming they are the same) with one click! Another useful timesaver for your visitors!
[ Get Source Code ]
Title: Copy Name
Details: 0.53 KB * Uploaded September 14 1999
Description: Allows the user to enter their name in the first field and have copies it to the second field for use as the User ID. It occurs instantly when they click the next field or the submit button. And, if the user tries to modify the second field, it is changed back to the value of the name field. Definitely a good example of the onChange() event handler in use.
[ Get Source Code ]
Title: Country Chooser
Details: 6.08 KB * Uploaded July 24 1998
Description: If you'd like to know where visitors to your site live, add this to your feedback forms. They just choose a region, and the second menu changes appropriately, allowing them to choose their country. (If they choose USA, it allows them to select their state) Neat!
[ Get Source Code ]
Title: Currency Format
Contributor: Cyanide_7 (leo7278@hotmail.com)
Contributor URL: http://www7.ewebcity.com/cyanide7
Details: 1.47 KB * Uploaded May 18 2000
Description: This script accepts a number or string and formats it like U.S. currency. Adds the dollar sign, rounds to two places past the decimal, adds place holding zeros, and commas where appropriate. Occurs when the user clicks the button or when they finish entering the money amount (and click into the next field).
[ Get Source Code ]
Title: Customized Window
Details: 2.54 KB * Uploaded July 11 1997
Description: Use Javascript to allow visitors to open a customized window.
[ Get Source Code ]
Title: Day Menu
Details: 1.20 KB * Uploaded October 4 1998
Description: Do you need your visitors to select a day from this month? Here's an excellent way to do so - they get a pulldown menu containing the entire month and the curre